package com.googlecode.rjm.model.journal;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;

import com.googlecode.rjm.model.Tracker;


@Entity
@DiscriminatorValue(value="attr#tracker_id")
public class TrackerJournalDetail extends JournalDetail<Tracker> {
	
	private static final long serialVersionUID = 1L;

	@Override
	public Tracker getTypedValue() {
		return loadObjectFromId(this.getValue(), Tracker.class);
	}

	@Override
	public Tracker getOldTypedValue() {
		return loadObjectFromId(this.getOldValue(), Tracker.class);
	}
	
}
